package com.yunji.storage.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yunji.common.annotation.Excel;
import com.yunji.common.base.BaseDelFlagDO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

;

/**
 * @Project: yunji-coffee
 * @Package: com.yunji.storage.domain
 * @Title: StockRecords
 * <p>
 * History:
 * Date                     Version     Author          Summary
 * ============================================================
 * 2024-08-16 18:04:56      V1.0        HuaAo       新建类
 */
@Data
@TableName("v3_storage_records")
public class StorageRecordsDO extends BaseDelFlagDO implements Serializable {

    private static final long serialVersionUID = 3907619844594759638L;

    @ApiModelProperty("记录单ID")
    @TableId(type = IdType.AUTO)
    private Long recordId;

    @ApiModelProperty("出入库单据ID")
    private Long ticketId;

    @ApiModelProperty("所属单位ID")
    private Long belongId;

    @ApiModelProperty("出入库单据编码")
    @Excel(name = "出入库单据编码", width = 15)
    private String ticketCode;

    @ApiModelProperty("业务ID")
    private Long businessId;

    @ApiModelProperty("业务编码")
    @Excel(name = "业务编码", width = 15)
    private String businessCode;

    @ApiModelProperty("操作类型 1-入库 2-出库")
    @Excel(name = "操作类型 1-入库 2-出库")
    private Integer storageType;

    @ApiModelProperty("商品ID")
    private Long productId;

    @ApiModelProperty("商品sku")
    @Excel(name = "商品sku", width = 15)
    private String productSku;

    @ApiModelProperty("商品名称")
    @Excel(name = "商品名称", width = 15)
    private String productName;

    @ApiModelProperty("商品单位ID")
    private Long unitId;

    @ApiModelProperty("商品单位名称")
    @Excel(name = "商品单位名称", width = 15)
    private String unitName;

    @ApiModelProperty("预计出/入库量")
    @Excel(name = "预计出/入库量", width = 15)
    private BigDecimal expectQuantity;

    @ApiModelProperty("实际出/入库量")
    @Excel(name = "实际出/人库量", width = 15)
    private BigDecimal actualQuantity;

    @ApiModelProperty("出入库备注")
    @Excel(name = "出入库备注", width = 15)
    private String remark;

    @ApiModelProperty("出入库时间")
    @Excel(name = "出入库时间", width = 15)
    private Date operateTime;

    @ApiModelProperty("备注信息")
    @Excel(name = "备注信息", width = 15)
    private String remarks;

}